package com.yixuan.mt.common.constant;

public class BucketsConstant {

    public final static int BUCKET_NAME_MAX_LENGTH = 20;
    public final static int BUCKET_NAME_MIN_LENGTH = 3;

    public final static String BUCKET_META_GLOBAL_FILE_PATH = "./data/.mt/buckets/.global/mt.meta";
    public final static String BUCKET_META_PREFIX_PATH = "./data/.mt/buckets/";
    public final static String BUCKET_META_ALONE_FILE_SUFFIX_PATH = "/.metadata/mt.meta";

    public final static int BUCKET_ACCESS_POLICY_PUBLIC = 0;
    public final static int BUCKET_ACCESS_POLICY_PRIVATE = 1;
    public final static int BUCKET_DEFAULT_ACCESS_POLICY = BUCKET_ACCESS_POLICY_PRIVATE;

    public final static int BUCKET_META_1_CREATED_TIME_POS = 0;
    public final static int BUCKET_META_1_CREATED_TIME_LENGTH = 19;
    public final static int BUCKET_META_2_ACCESS_POLICY_POS = BUCKET_META_1_CREATED_TIME_POS + BUCKET_META_1_CREATED_TIME_LENGTH;
    public final static int BUCKET_META_2_ACCESS_POLICY_LENGTH = 1;
    public final static int BUCKET_META_3_OBJECTS_NUMBER_POS = BUCKET_META_2_ACCESS_POLICY_POS + BUCKET_META_2_ACCESS_POLICY_LENGTH;
    public final static int BUCKET_META_3_OBJECTS_NUMBER_LENGTH = 4;
}
